<?php
use Phalcon\Mvc\Url as UrlProvider;

require APP_PATH . 'app/config/services.php';

$id->set('url', function() use ($config){
    $url = new UrlProvider();
    $url->setBaseUri($config->application->baseUri);
    return $url;
});